#ifndef CLIENT_CONVERSATION_H_
#define CLIENT_CONVERSATION_H_
/*#include "common_get_job_part.h"
#include "common_job_part_finished.h"
#include "common_job_part.h"
#include "common_no_job_part.h"
#include "common_possible_key.h"
#include "server_hex_encode.h"
#include "common_decod_msg.h"*/
#include "socket.h"
//#include "server_keys_range.h"
#include "thread.h"
#include "mutex.h"
#include <vector>
#include <stack>

class ClientConversation: public Thread {
private:
	string encrypted_file;
	//Mutex para proteger datos compartidos entre threads
	Mutex* general_mutex;
	//Socket para la comunicacion
	Socket* s;
	//Metodo para esperar por un loggeo
	string WaitForLogin(unsigned int max_tries);
public:

	ClientConversation(Socket* s,Mutex* general_mutex);
	~ClientConversation();
	void run();

};

#endif /* CLIENT_CONVERSATION_H_ */
